import { handleActions } from "redux-actions";
import types from './../actionTypes'

const initState={}
const categoriesReducer = handleActions({
    [types.GET_CATEGORIES_ASYNC]:(state,action)=>{
          // console.log('接收到的是 saga 中通过 put 传递的值', action);
          return action.payload;
    },
    [types.GET_USER]:(state,{payload})=>{
        console.log(payload);
    }
},initState)
export default categoriesReducer